<?php

declare (strict_types=1);
namespace App\Model;

use Lete\Base\Abstraction\Model;

/**
 * @property int $id
 * @property string $handle
 * @property string $title
 * @property string $website
 * @property string $api_uri
 * @property string $pre_api_uri
 * @property int $status
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 */
class Project extends Model
{
    /**
     * 状态-未部署
     */
    const STATUS_NONE_DEPLOYED = 1;

    /**
     * 状态-部署中
     */
    const STATUS_DEPLOYING = 2;

    /**
     * 状态-已部署
     */
    const STATUS_DEPLOYED = 3;

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'projects';
    /**
     * @var array
     */
    protected $guarded = ['id'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
